<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
<link href="{dede:global.cfg_templets_skin/}/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
<!--
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	  DedeXHTTP = null;
}
function postBadGood(ftype,fid)
{
	var taget_obj = document.getElementById(ftype+fid);
	var saveid = GetCookie('badgoodid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==fid && hasid) continue;
			else {
				if(saveids[i]==fid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==10 && hasid) break;
				if(j==9 && !hasid) break;
			}
		}
		if(hasid) { alert('您刚才已表决过了喔！'); return false;}
		else saveid += ','+fid;
		SetCookie('badgoodid',saveid,1);
	}
	else
	{
		SetCookie('badgoodid',fid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
}
function postDigg(ftype,aid)
{
	var taget_obj = document.getElementById('newdigg');
	var saveid = GetCookie('diggid');
	if(saveid != null)
	{
		var saveids = saveid.split(',');
		var hasid = false;
		saveid = '';
		j = 1;
		for(i=saveids.length-1;i>=0;i--)
		{
			if(saveids[i]==aid && hasid) continue;
			else {
				if(saveids[i]==aid && !hasid) hasid = true;
				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
				j++;
				if(j==20 && hasid) break;
				if(j==19 && !hasid) break;
			}
		}
		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }
		else saveid += ','+aid;
		SetCookie('diggid',saveid,1);
	}
	else
	{
		SetCookie('diggid',aid,1);
	}
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
	myajax.SendGet2(url);
}
function getDigg(aid)
{
	var taget_obj = document.getElementById('newdigg');
	myajax = new DedeAjax(taget_obj,false,false,'','','');
	myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
	DedeXHTTP = null;
}
-->
</script>
</head>

<body>
<div class="header">
   <div class="top">
       <div id="logo"></div>
       <div class="nav">
           <ul>
      	<li><a href='{dede:global.cfg_cmsurl/}/'><span>首页</span></a></li>
      	{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
      	<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
      	{/dede:channel}
    	</ul>
       </div>
       <div id="login">
           <ul>
              <li><a href="javascript:void();" id="login">用户登录</a> 
                  <ul class="child">  
                  <!------user login --------->
                      <form name="userlogin" action="{dede:global.cfg_memberurl/}/index_do.php" method="POST">
                        <input type="hidden" name="fmdo" value="login" />
                        <input type="hidden" name="dopost" value="login" />
                        <input type="hidden" name="keeptime" value="604800" />
         <li>
             <label>账 号:</label>
             <span><input type="text" name="userid" size="20" class="ipt-txt" /></span>
        </li>
        <li>
           <label>密 码:</label>
              <span><input type="password" name="pwd" size="20" class="ipt-txt" /></span>
        </li>
        {dede:php}
        if(preg_match("#2#", $safe_gdopen))
        {
        echo '
        <li>
        <label>验 证:</label>
         <span><input type="text" name="vdcode" size="8" class="ipt-txt" />
         <img id="vdimgck" align="absmiddle" onClick="this.src=this.src+\'?\'" style="cursor:pointer;margin-left:0px;text-transform:uppercase;" alt="看不清？点击更换" src="'.$cfg_cmspath.'/include/vdimgck.php"/></span></li>
        ';
        }
        {/dede:php}
        <div class="submit">
         <button type="submit" class="btn-1">登录</button>
         <a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" >注册帐号</a> <a href="{dede:global.cfg_memberurl/}/resetpassword.php">忘记密码?</a> </div>
       </form>
                    <!--------// user login ----------->
                  </ul>
              </li>
           </ul>
       </div>
       <!-- // login -->
   </div>
</div>

<div class="body">
    
    <div class="left">
        <h2>{dede:field.title/}</h2>
         <div class="ainfo"> <span><small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}</span> <span><small>来源:</small>{dede:field.source/}</span> <span><small>作者:</small>{dede:field.writer/}</span> <span> <small>点击:</small>
   <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>
   次</span></div>
       <div class="line"></div>
        <div class="content">
            {dede:field.body/}
            {dede:field.vote/}
        </div>
        
        <div class="share"> {dede:bshare/}</div>
        
        <div class="smallinfo">
              <div class="dede_pages">
   <ul class="pagelist">
    {dede:pagebreak/}
   </ul>
  </div>
        </div>
        
        <div class="commentlist">
            <!-- //评论内容区 -->
          <a name='commettop'></a>
          <div class="mt1">
            <dl class="tbox">
              <dt> <strong>最新评论</strong> <span class="more"><a href="{dede:field name='phpurl'/}/feedback.php?aid={dede:field.id/}">进入详细评论页&gt;&gt;</a></span> </dt>
              <!-- //这两个ID的区块必须存在，否则JS会出错 -->
              <dd id='commetcontentNew'></dd>
              <dd id='commetcontent'></dd>
            </dl>
          </div>
        </div>
        
        <div class="comment">
            <!-- //AJAX评论区 -->
              {dede:include file='ajaxfeedback.htm' /}
        </div>
        
    </div>
    
    <div class="right">
        <div class="jbox">
            <h2><span>你还集了什么？</span></h2>
            <ul class="jimgbox">
                {dede:arclist row=12 orderby=pubdate type='image.' imgwidth='65' imgheight='65'}
                    <li><a href="[field:arcurl/]">[field:image/]</a></li>
                {/dede:arclist}
            </ul>
        </div>
        
        <div class="jbox">
        <h2><span>你分享了什么？</span></h2>
            <ul class="jimgbox">
                {dede:arclist row=12 orderby=pubdate type='image.' imgwidth='65' imgheight='65'}
                    <li><a href="[field:arcurl/]">[field:image/]</a></li>
                {/dede:arclist}
            </ul>
        </div>
        
    </div>    
   
</div>

</body>
</html>
